import Vue from 'vue'
import Router from 'vue-router'
// import shop from '@/components/shop/shop.vue'
const shop = () => {
  return import('@/components/shop/shop.vue')
}
const index = () => {
  return import('@/components/index/index.vue')
}
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/shop/:shopId',
      name: 'shop',
      component: shop
    }
  ]
})
